//
//  GNRAlertManager.h
//  app
//
//  Created by LvYuan on 16/9/30.
//  Copyright © 2016年 UU. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "GNRAlertHeader.h"

@interface GNRAlertManager : NSObject

@property(nonatomic,assign)GNRAlertStyle defaultStyle;
@property(nonatomic,strong)UIImage * defaultIconImage;
@property(nonatomic,strong)UIImage * defaultHeaderBgImage;

@property (nonatomic, strong)NSMutableArray <GNRAlertView *>* alerts;

+ (GNRAlertManager *)manager;

+ (void)setDefaultStyle:(GNRAlertStyle)style;//全局设置弹窗的类型

+ (void)setDefaultIconImage:(UIImage *)defaultIconImage;//全局设置弹窗默认Icon图片

+ (void)setDefaultHeaderBgImage:(UIImage *)defaultHeaderBgImage;//全局设置弹窗默认Header图片

#pragma mark - Private

- (void)addAlertView:(GNRAlertView *)alertView;//增加一个GNRAlertView

- (void)removeAlertView:(GNRAlertView *)alertView;//移除一个GNRAlertView
- (void)addNewAlertView:(GNRAlertView *)alertView;

@end
